import request from '@/utils/request'

// 查询路线列表
export function listRoadlinks(query) {
  return request({
    url: '/work/roadlinks/list',
    method: 'get',
    params: query
  })
}

// 查询路线详细
export function getRoadlinks(id) {
  return request({
    url: '/work/roadlinks/' + id,
    method: 'get'
  })
}

// 新增路线
export function addRoadlinks(data) {
  return request({
    url: '/work/roadlinks',
    method: 'post',
    data: data
  })
}

// 修改路线
export function updateRoadlinks(data) {
  return request({
    url: '/work/roadlinks',
    method: 'put',
    data: data
  })
}

// 删除路线
export function delRoadlinks(id) {
  return request({
    url: '/work/roadlinks/' + id,
    method: 'delete'
  })
}

// 导入路线
export function importRoadlinks(data) {
  return request({
    url: '/work/test/import',
    method: 'post',
    data: data
  })
}
